﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ListAll.ascx.cs" Inherits="Team4Mock.UserControl.Premise.ListAll" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
<%@ Register Src="~/UserControl/Premise/AddPremise.ascx" TagName="PreAdd" TagPrefix="uc1" %>
<%@ Register Src="~/UserControl/Minor/View.ascx" TagName="ViewMinor" TagPrefix="uc2" %>
<%@ Register Src="~/UserControl/Volunteering/View.ascx" TagName="ViewVolun" TagPrefix="uc3" %>
<%@ Register Src="~/UserControl/Facility/ViewFac.ascx" TagName="ViewFac" TagPrefix="uc4" %>
<script type="text/javascript">
    $(document).ready(function () {

        $(".tab_content").hide();
        $("ul.tabs li:first").addClass("active").show();
        $(".tab_content:first").show();

        $("ul.tabs li").click(function () {

            $("ul.tabs li").removeClass("active");
            $(this).addClass("active");
            $(".tab_content").hide();

            var activeTab = $(this).find("a").attr("href");
            $(activeTab).slideDown();
            return false;
        });
    });
</script>
<script type="text/javascript">
    function Rediect() {
        alert("You do not have permission to on this page");
        window.location.href = "/FormView/Default.aspx";
    }
    function Error() {
        alert("Error in processing !");
        window.location.href = "/FormView/Default.aspx";
    }
</script>
<asp:Panel ID="pnView" runat="server">
    <fieldset style="width: 760px;">
        <legend style="height: 25px; background-color: #465c71; -webkit-border-radius: 5px 5px 0px 0px;
            color: #dde4ec; font-size: 18px;">Premise List</legend>
        <div id="Directorate" class="tab_content">
            <div style="width: 509px; float: left; height: 32px; font-size: 15px; line-height: 32px;">
                <asp:LinkButton ID="All" runat="server" Text="All" OnClick="All_Click"></asp:LinkButton>&nbsp;&nbsp;|
                <asp:LinkButton ID="LinkButton2" runat="server" Text="A-B-C-D-E" OnClick="LinkButton2_Click"></asp:LinkButton>&nbsp;&nbsp;|
                <asp:LinkButton ID="LinkButton3" runat="server" Text="F-G-H-I-J" OnClick="LinkButton3_Click"></asp:LinkButton>&nbsp;&nbsp;|
                <asp:LinkButton ID="LinkButton4" runat="server" Text="K-M-N-L" OnClick="LinkButton4_Click"></asp:LinkButton>&nbsp;&nbsp;|
                <asp:LinkButton ID="LinkButton5" runat="server" Text="O-P-Q-R" OnClick="LinkButton5_Click"></asp:LinkButton>&nbsp;&nbsp;|
                <asp:LinkButton ID="LinkButton6" runat="server" Text="S-T-U-V" OnClick="LinkButton6_Click"></asp:LinkButton>&nbsp;&nbsp;|
                <asp:LinkButton ID="LinkButton7" runat="server" Text="W-X-Y-Z" OnClick="LinkButton7_Click"></asp:LinkButton>
            </div>
            <div style="float: left; height: 32px; line-height: 32px;">
                <asp:Button ID="btnCreate" runat="server" Text="Create" CssClass="button" OnClick="btnCreate_Click" />&nbsp;&nbsp;
                <asp:CheckBox ID="CheckBox1" AutoPostBack="true" runat="server" Text="In-active"
                    OnCheckedChanged="CheckBox1_CheckedChanged" />
            </div>
            <div style="width: 784px;">
                <asp:UpdatePanel ID="pnanel" runat="server">
                    <ContentTemplate>
                        <asp:GridView ID="gvPremise" AutoGenerateColumns="False" DataKeyNames="PremisesID"
                            runat="server" Width="709px" Font-Size="15px" BackColor="White" BorderColor="#CCCCCC"
                            AllowSorting="true" BorderStyle="None" BorderWidth="1px" CellPadding="3" OnSorting="gvPremise_Sorting">
                            <Columns>
                                <asp:TemplateField HeaderText="ID" Visible="false">
                                    <ItemTemplate>
                                        <asp:Label ID="lbID" runat="server" Text='<%#Eval("PremisesID") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Location Name" SortExpression="LocationName">
                                    <ItemTemplate>
                                        <asp:HyperLink ID="OrgName" runat="server" NavigateUrl='<%#"/FormView/Premise.aspx?"+"ID="+Eval("PremisesID") %>'
                                            Text='<%#Eval("LocationName") %>'></asp:HyperLink>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Address Line 1" SortExpression="AddressLine1">
                                    <ItemTemplate>
                                        <asp:Label ID="lbHOA" runat="server" Text='<%#Eval("AddressLine1") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Post Code" SortExpression="PostCode">
                                    <ItemTemplate>
                                        <asp:Label ID="lbPostcode" runat="server" Text='<%#Eval("PostCode") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Is Active">
                                    <ItemTemplate>
                                        <asp:Label ID="lbActive" runat="server" Text='<%#Eval("IsActive") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                            <FooterStyle BackColor="White" ForeColor="#000066" />
                            <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
                            <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
                            <RowStyle ForeColor="#000066" />
                            <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                        </asp:GridView>
                        <p style="width: 765px; background-color: lavender; line-height: 25px;">
                            <asp:Label ID="abc" runat="server" Style="font-size: 15px;"></asp:Label>
                        </p>
                    </ContentTemplate>
                    <Triggers>
                        <asp:AsyncPostBackTrigger ControlID="gvPremise" EventName="Sorting" />
                        <asp:AsyncPostBackTrigger ControlID="All" EventName="Click" />
                        <asp:AsyncPostBackTrigger ControlID="LinkButton2" EventName="Click" />
                        <asp:AsyncPostBackTrigger ControlID="LinkButton3" EventName="Click" />
                        <asp:AsyncPostBackTrigger ControlID="LinkButton4" EventName="Click" />
                        <asp:AsyncPostBackTrigger ControlID="LinkButton5" EventName="Click" />
                        <asp:AsyncPostBackTrigger ControlID="LinkButton6" EventName="Click" />
                        <asp:AsyncPostBackTrigger ControlID="LinkButton7" EventName="Click" />
                        <asp:AsyncPostBackTrigger ControlID="CheckBox1" EventName="CheckedChanged" />
                    </Triggers>
                </asp:UpdatePanel>
                <asp:UpdateProgress ID="UpdateProgress1" runat="server" AssociatedUpdatePanelID="pnanel">
                </asp:UpdateProgress>
            </div>
        </div>
    </fieldset>
</asp:Panel>
<asp:Panel ID="pnAdd" runat="server">
    <uc1:PreAdd ID="ucAdd" runat="server"></uc1:PreAdd>
</asp:Panel>
<asp:Panel runat="server" ID="pnAmend">
    <fieldset style="width: 760px;">
        <legend style="height: 25px; background-color: #465c71; -webkit-border-radius: 5px 5px 0px 0px;
            color: #dde4ec; font-size: 18px;">Premise Details</legend>
        <div style="width: 760px;">
            <ul class="tabs" style="width: 760px; float: left;">
                <li><a href="#Create1" class="active tab">Details1</a></li>
                <li><a href="#Create2" class="tab">Details2</a></li>
                <li><a href="#Create3" class="tab">Details3</a></li>
                <li><a href="#Create4" class="tab">Details4</a></li>
                <li><a href="#Facilities" class="tab">Facilities</a></li>
                <li><a href="#Minor" class="tab">Minor</a></li>
                <li><a href="#Volunteering" class="tab">Volunteering</a></li>
                <li><a href="#Service" class="tab">Service</a></li>
            </ul>
            <br />
            <div class="tab_container">
                <div id="Create1" class="tab_content">
                    <table width="760px" cellpadding="0px" cellspacing="0px" border="0" style="font-size: 15px;">
                        <tr>
                            <td class="style50">
                                Location Name <span style="color: Red;">(*)</span>
                            </td>
                            <td class="style51">
                                <asp:TextBox ID="txtLocName" runat="server" Width="186px"></asp:TextBox>
                            </td>
                            <td class="style11">
                                Primary Location
                            </td>
                            <td class="style6">
                                <asp:CheckBox ID="ckPriLoc" runat="server" />
                            </td>
                        </tr>
                        <tr>
                            <td class="style52">
                                Knows As
                            </td>
                            <td class="style24">
                                <asp:TextBox ID="txtKnowAs" runat="server" Width="186px"></asp:TextBox>
                            </td>
                            <td class="style13">
                                Location Managed
                            </td>
                            <td class="style53">
                                <asp:CheckBox ID="ckLocMan" runat="server" />
                            </td>
                        </tr>
                        <tr>
                            <td class="style12">
                                Location Organisation
                            </td>
                            <td class="style26">
                                <input type="text" id="txtOrg" readonly="readonly" style="width: 104px" />
                                <input type="hidden" id="idOrga" />
                                &nbsp;&nbsp; <a href="#" onclick="PopupOrg();return false;">Lookup</a>
                                <asp:HiddenField ID="idOrg" runat="server" />
                            </td>
                            <td>
                                ST Network Connectivity
                            </td>
                            <td>
                                <asp:CheckBox ID="ckSTNetCon" runat="server" />
                            </td>
                        </tr>
                        <tr>
                            <td class="style50">
                                Location Status&nbsp; <span style="color: Red; text-decoration: blink;">(*)</span>
                            </td>
                            <td class="style51">
                                <asp:DropDownList ID="dlLocSta" runat="server" AutoPostBack="true" Width="186px">
                                    <asp:ListItem>Select Status</asp:ListItem>
                                    <asp:ListItem Value="Pending Active">Pending Active</asp:ListItem>
                                    <asp:ListItem Value="Active">Active</asp:ListItem>
                                    <asp:ListItem Value="Pending Closure">Pending Closure</asp:ListItem>
                                    <asp:ListItem Value="Pending Active">Pending Active</asp:ListItem>
                                    <asp:ListItem Value="Closed Items">Closed Items</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                            <td rowspan="2" class="style15">
                                Location Type<span style="color: Red;"> (*)</span>
                            </td>
                            <td rowspan="2">
                                <asp:CheckBoxList ID="clLocTyp" runat="server" Width="190px" Height="54px">
                                </asp:CheckBoxList>
                            </td>
                        </tr>
                        <tr>
                            <td class="style12">
                                Location Status Date
                            </td>
                            <td class="style1">
                                <asp:TextBox ID="txtLocStaDate" runat="server" Width="186px"></asp:TextBox>
                                <cc1:CalendarExtender runat="server" ID="CalendarExtender1" TargetControlID="txtLocStaDate" />
                            </td>
                        </tr>
                        <tr>
                            <td class="style12">
                                Address Line 1
                            </td>
                            <td class="style26">
                                <asp:TextBox ID="txtAdd1" runat="server" Width="186px"></asp:TextBox>
                            </td>
                            <td rowspan="2">
                                Location Description
                            </td>
                            <td rowspan="2">
                                <asp:TextBox TextMode="MultiLine" ID="txtDesFull" runat="server" Width="174px" Height="54px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="style83">
                                Address Line 2
                            </td>
                            <td class="style84">
                                <asp:TextBox ID="txtAdd2" runat="server" Width="186px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="style12">
                                Address Line 3
                            </td>
                            <td class="style26">
                                <asp:TextBox ID="txtAdd3" runat="server" Width="186px"></asp:TextBox>
                            </td>
                            <td>
                                Phone Number <span style="color: Red;">(*)</span>
                            </td>
                            <td>
                                <asp:TextBox ID="txtPhone" runat="server" Width="176px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="style12">
                                Post Code <span style="color: Red;">(*)</span>
                            </td>
                            <td class="style26">
                                <input type="text" id="txtPostCode" style="width: 117px;" readonly="readonly" />
                                &nbsp;&nbsp;<a href="#" onclick="PopupAddress();return false;">Lookup</a>
                                <asp:HiddenField ID="PostCode" runat="server" />
                            </td>
                            <td>
                                Gerneral Fax Number
                            </td>
                            <td>
                                <asp:TextBox ID="txtGerNum" runat="server" Width="176px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="style12">
                                City/Town
                            </td>
                            <td class="style26">
                                <input type="text" id="txtTown" style="width: 186px;" readonly="readonly" />
                                <asp:HiddenField ID="Town" runat="server" />
                            </td>
                            <td>
                                Minicomm Number
                            </td>
                            <td>
                                <asp:TextBox ID="txtMiniNum" runat="server" Width="176px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="style12">
                                County
                            </td>
                            <td class="style26">
                                <input type="text" id="txtCounty" style="width: 186px;" />
                                <asp:HiddenField ID="County" runat="server" />
                            </td>
                            <td>
                                Is New Shop
                            </td>
                            <td>
                                <asp:CheckBox ID="ckIsNewShop" runat="server" />
                            </td>
                        </tr>
                        <tr>
                            <td class="style49">
                                Nation/Country
                            </td>
                            <td class="style25">
                                <asp:DropDownList ID="dlCountry" DataTextField="CountryName" DataValueField="CountryName"
                                    runat="server" Width="186px">
                                </asp:DropDownList>
                            </td>
                            <td class="style19">
                                Shop Flag Date
                            </td>
                            <td class="style19">
                                <asp:TextBox ID="txtShopFlagDate" runat="server" Width="176px"></asp:TextBox>
                                <cc1:CalendarExtender runat="server" ID="calenShopflag" TargetControlID="txtShopFlagDate"
                                    Format="MM/dd/yyyy" />
                            </td>
                        </tr>
                        <tr>
                            <td class="style31">
                                Is Active
                            </td>
                            <td class="style31">
                                <asp:CheckBox runat="server" ID="ckactive" />
                            </td>
                            <td class="style31">
                                Specialist Shop
                            </td>
                            <td class="style31">
                                <asp:CheckBox ID="ckSpecShop" runat="server" />
                            </td>
                        </tr>
                        <tr>
                            <td colspan="4">
                                <asp:HyperLink ID="hp1" runat="server" NavigateUrl="#" Text="Location Opening Times"></asp:HyperLink>
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
            <div class="tab_container">
                <div id="Create2" class="tab_content">
                    <table width="760px" cellpadding="0px" cellspacing="0px" border="0" style="font-size: 15px;">
                        <tr>
                            <td class="style20">
                                Accreditations
                            </td>
                            <td class="style21">
                                <asp:CheckBoxList ID="clAcc" runat="server" Width="142px" Height="100px">
                                </asp:CheckBoxList>
                            </td>
                            <td class="style16">
                                JCP Offices
                            </td>
                            <td>
                                <asp:CheckBoxList ID="clJcpOff" runat="server" Width="154px" Height="100px">
                                </asp:CheckBoxList>
                            </td>
                        </tr>
                        <tr>
                            <td class="style44">
                                Media Contact
                            </td>
                            <td class="style45">
                                <asp:CheckBox ID="ckMediaContact" runat="server" />
                            </td>
                            <td class="style46">
                                Catering Facilities
                            </td>
                            <td class="style47">
                                <asp:CheckBox ID="ckCateFac" runat="server" />
                            </td>
                        </tr>
                        <tr>
                            <td class="style20">
                                Media Contact Name
                            </td>
                            <td class="style21">
                                <input type="text" id="MediaName" readonly="readonly" style="width: 104px" />
                                <input type="hidden" id="hdMedia" />
                                &nbsp;&nbsp; <a href="#" onclick="PopupMedia();return false;">Lookup</a>
                                <asp:HiddenField ID="idMediaContact" runat="server" />
                            </td>
                            <td class="style16">
                                Catering Contact
                            </td>
                            <td>
                                <input type="text" id="CateringName" readonly="readonly" style="width: 104px" />
                                <input type="hidden" id="hdCatering" />
                                &nbsp;&nbsp; <a href="#" onclick="PopupCatering();return false;">Lookup</a>
                                <asp:HiddenField ID="idCatering" runat="server" />
                            </td>
                        </tr>
                        <tr>
                            <td rowspan="3" class="style20">
                                Location Demographic Issues
                            </td>
                            <td rowspan="3" class="style21">
                                <asp:CheckBoxList ID="clLocDemoIss" runat="server" Width="132px" Height="100px">
                                </asp:CheckBoxList>
                            </td>
                            <td class="style42">
                                Catering Type
                            </td>
                            <td class="style43">
                                <asp:DropDownList ID="dlCateType" AutoPostBack="true" DataTextField="RefValue" DataValueField="RefId"
                                    runat="server" Width="186px">
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td class="style46">
                                IS/Network
                            </td>
                            <td class="style2">
                                <asp:DropDownList ID="dlISNetwork" runat="server" Width="186px">
                                    <asp:ListItem Value="Open">Open</asp:ListItem>
                                    <asp:ListItem Value="Wip">Wip</asp:ListItem>
                                    <asp:ListItem Value="Closed">Closed</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td class="style42">
                                Client IT Facility
                            </td>
                            <td class="style43">
                                <asp:CheckBox ID="ckClientIFFac" runat="server" />
                            </td>
                        </tr>
                        <tr>
                            <td rowspan="4" class="style20">
                                Local Demographic Notes
                            </td>
                            <td rowspan="4" class="style21">
                                <asp:TextBox ID="txtLocDemNotes" runat="server" TextMode="MultiLine" Height="80px"
                                    Width="163px"></asp:TextBox>
                            </td>
                            <td class="style16">
                                Client IT Facility Details
                            </td>
                            <td>
                                <asp:TextBox ID="txtClientFacDetails" runat="server" TextMode="MultiLine"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="style40">
                                Room Availiability
                            </td>
                            <td class="style48">
                                <asp:CheckBox ID="ckRoomAvai" runat="server" />
                            </td>
                        </tr>
                        <tr>
                            <td class="style16">
                                Volunteering Opportunites
                            </td>
                            <td>
                                <asp:CheckBox ID="ckVolunOpp" runat="server" />
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
            <div class="tab_container">
                <div id="Create3" class="tab_content">
                    <table width="760px" cellpadding="0px" cellspacing="0px" border="0" style="font-size: 15px;">
                        <tr>
                            <td class="style60">
                                Outreach Location
                            </td>
                            <td class="style22">
                                <asp:CheckBoxList ID="clOutLoc" runat="server" Width="176px" Height="100px" Style="margin-left: 0px;
                                    border: 1px solid #c3c3c3;">
                                </asp:CheckBoxList>
                            </td>
                            <td class="style59" style="height: 100px;">
                                Local Hotel
                            </td>
                            <td style="height: 100px;">
                                <div style="height: 100px; overflow-y: scroll;">
                                    <asp:CheckBoxList ID="clLocHot" runat="server" Width="191px" Height="100px" Style="margin-left: 0px;
                                        border: 1px solid #c3c3c3;">
                                    </asp:CheckBoxList>
                                </div>
                            </td>
                        </tr>
                        <tr>
                            <td class="style29">
                                Travel Detail
                            </td>
                            <td class="style30">
                                <asp:TextBox ID="txtTravelDetail" runat="server" Width="176px"></asp:TextBox>
                            </td>
                            <td class="style56">
                                Visitor Parking Onsite
                            </td>
                            <td class="style31">
                                <asp:CheckBox ID="ckVisitParkOnsite" runat="server" />
                            </td>
                        </tr>
                        <tr>
                            <td class="style32">
                                Travel Nearest Bus
                            </td>
                            <td class="style54">
                                <asp:TextBox ID="txtTravelBus" runat="server" Width="176px"></asp:TextBox>
                            </td>
                            <td class="style57">
                                Visitor Parking Spaces
                            </td>
                            <td class="style33">
                                <asp:TextBox ID="txtVisitParkSpac" runat="server" Width="176px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="style34">
                                Travel Nearest Rail
                            </td>
                            <td class="style35">
                                <asp:TextBox ID="txtTravelRail" runat="server" Width="176px"></asp:TextBox>
                            </td>
                            <td rowspan="2" class="style59">
                                Visitor Parking Altermative
                            </td>
                            <td rowspan="2">
                                <asp:TextBox ID="txtVisitParkingAlt" runat="server" TextMode="MultiLine" Height="61px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="style32">
                                Travel Nearest Airport
                            </td>
                            <td class="style54">
                                <asp:TextBox ID="txtTravelAirport" runat="server" Width="176px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="style38">
                                Host Visits
                            </td>
                            <td class="style55">
                                <asp:CheckBox ID="ckHostVisit" runat="server" />
                            </td>
                            <td class="style58">
                            </td>
                            <td class="style39">
                            </td>
                        </tr>
                        <tr>
                            <td class="style60">
                                Hosting contact
                            </td>
                            <td class="style22">
                                <input id="Name" readonly="readonly" style="width: 104px" type="text" />
                                <input id="id" type="hidden" />
                                &nbsp;&nbsp; <a href="#" onclick="PopupContact();return false;">Lookup</a>
                                <asp:HiddenField ID="idhostingcontact" runat="server" />
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
            <div class="tab_container">
                <div id="Create4" class="tab_content">
                    <table width="760px" cellpadding="0px" cellspacing="0px" border="0" style="font-size: 15px;">
                        <tr>
                            <td class="style15">
                                Room Only Rate
                            </td>
                            <td class="style63">
                                <asp:TextBox ID="txtRoomrate" runat="server" Width="176px"></asp:TextBox>
                            </td>
                            <td class="style62">
                                Negotiated Room Only Rate
                            </td>
                            <td>
                                <asp:TextBox ID="txtNegoRoom" runat="server" Width="176px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="style82">
                                B&amp;B Rate
                            </td>
                            <td class="style65">
                                <asp:TextBox ID="txtBBRate" runat="server" Width="176px"></asp:TextBox>
                            </td>
                            <td class="style66">
                                B&amp;B Negotiated Rate
                            </td>
                            <td class="style31">
                                <asp:TextBox ID="txtBBNego" runat="server" Width="176px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="style67">
                                DBB Rate
                            </td>
                            <td class="style68">
                                <asp:TextBox ID="txtDBBRate" runat="server" Width="176px"></asp:TextBox>
                            </td>
                            <td class="style69">
                                DBB Negotiated Rate
                            </td>
                            <td class="style70">
                                <asp:TextBox ID="txtDBBNego" runat="server" Width="176px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="style71">
                                DD Rate
                            </td>
                            <td class="style72">
                                <asp:TextBox ID="txtDDRate" runat="server" Width="176px"></asp:TextBox>
                            </td>
                            <td class="style73">
                                DD Negotiated Rate
                            </td>
                            <td class="style47">
                                <asp:TextBox ID="txtDDNego" runat="server" Width="176px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="style71">
                                24hr Rate
                            </td>
                            <td class="style72">
                                <asp:TextBox ID="txtHrRate" runat="server" Width="176px"></asp:TextBox>
                            </td>
                            <td class="style73">
                                24hr Negotiated Rate
                            </td>
                            <td class="style47">
                                <asp:TextBox ID="txtHrNego" runat="server" Width="176px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="style74">
                                Tea and Coffee
                            </td>
                            <td class="style75">
                                <asp:TextBox ID="txtTeaAndCoffee" runat="server" Width="176px"></asp:TextBox>
                            </td>
                            <td class="style76">
                                Last Negotiated Rate
                            </td>
                            <td class="style53">
                                <asp:TextBox ID="txtLastNego" runat="server" Width="176px"></asp:TextBox>
                                <cc1:CalendarExtender runat="server" ID="CalendarExtender2" TargetControlID="txtLastNego"
                                    Format="MM/dd/yyyy" />
                            </td>
                        </tr>
                        <tr>
                            <td class="style82">
                                Lunch
                            </td>
                            <td class="style65">
                                <asp:CheckBox ID="ckLunch" runat="server" />
                            </td>
                            <td class="style66">
                                Re-Negotiated On
                            </td>
                            <td class="style31">
                                <asp:TextBox ID="txtReNego" runat="server" Width="176px"></asp:TextBox>
                                <cc1:CalendarExtender runat="server" ID="CalendarExtender3" TargetControlID="txtReNego"
                                    Format="MM/dd/yyyy" />
                            </td>
                        </tr>
                        <tr>
                            <td class="style77">
                                No of Meeting Room
                            </td>
                            <td class="style78">
                                <asp:TextBox ID="txtNoMeetingRoom" runat="server" Width="176px"></asp:TextBox>
                            </td>
                            <td class="style79">
                                Preferred Status
                            </td>
                            <td class="style80">
                                <asp:DropDownList ID="dlPrefrred" runat="server" Width="186px">
                                    <asp:ListItem Value="Status 1">Status 1</asp:ListItem>
                                    <asp:ListItem Value="Status 2">Status 2</asp:ListItem>
                                    <asp:ListItem Value="Status 3">Status 3</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                        <tr>
                            <td class="style15">
                                Meeting Room Rate Per Day
                            </td>
                            <td class="style63">
                                <asp:TextBox ID="txtMeetingRoomPerDay" runat="server" Width="176px"></asp:TextBox>
                            </td>
                            <td rowspan="2" class="style62">
                                Comments
                            </td>
                            <td rowspan="2">
                                <asp:TextBox ID="txtComments" runat="server" Style="max-width: 180px; max-height: 60px;"
                                    TextMode="MultiLine" Height="43px"></asp:TextBox>
                            </td>
                        </tr>
                        <tr>
                            <td class="style15">
                                Codings
                            </td>
                            <td class="style63">
                                <asp:DropDownList ID="dlCodings" runat="server" Width="186px">
                                    <asp:ListItem Value="Coding 1">Coding 1</asp:ListItem>
                                    <asp:ListItem Value="Coding 2">Coding 2</asp:ListItem>
                                    <asp:ListItem Value="Coding 3">Coding 3</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                        </tr>
                    </table>
                </div>
            </div>
            <div class="tab_container">
                <div id="Facilities" class="tab_content">
                    <uc4:ViewFac ID="viewFac" runat="server"></uc4:ViewFac>
                </div>
            </div>
            <div class="tab_container">
                <div id="Minor" class="tab_content">
                    <uc2:ViewMinor ID="viewMinor" runat="server"></uc2:ViewMinor>
                </div>
            </div>
            <div class="tab_container">
                <div id="Volunteering" class="tab_content">
                    <uc3:ViewVolun ID="viewVolun" runat="server"></uc3:ViewVolun>
                </div>
            </div>
            <div class="tab_container">
                <div id="Service" class="tab_content">
                    <asp:GridView ID="gvService" AutoGenerateColumns="False" DataKeyNames="serviceid" runat="server"
                        Width="725px" Font-Size="15px" BackColor="White" BorderColor="#CCCCCC" AllowSorting="true"
                        BorderStyle="None" BorderWidth="1px" CellPadding="3" OnRowCommand="gvService_RowCommand">
                        <Columns>
                            <asp:TemplateField HeaderText="Service Name">
                                <ItemTemplate>
                                    <asp:Label ID="lbID" runat="server" Text='<%#Eval("servicename") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Description">
                                <ItemTemplate>
                                    <asp:Label ID="lbHOA" runat="server" Text='<%#Eval("clientDescription") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Service Type">
                                <ItemTemplate>
                                    <asp:Label ID="lbPostcode" runat="server" Text='<%#Eval("servicetype") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField HeaderText="Contact">
                                <ItemTemplate>
                                    <asp:Label ID="lbContact" runat="server" Text='<%#Eval("Contact Name") %>'></asp:Label>
                                </ItemTemplate>
                            </asp:TemplateField>
                            <asp:TemplateField>
                                <ItemTemplate>
                                    <asp:LinkButton runat="server" ID="reService" Text="Remove" CommandName="Remove"
                                        CommandArgument='<%#Eval("serviceid") %>' />
                                </ItemTemplate>
                            </asp:TemplateField>
                        </Columns>
                        <FooterStyle BackColor="White" ForeColor="#000066" />
                        <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
                        <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
                        <RowStyle ForeColor="#000066" />
                        <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                    </asp:GridView>
                    <p style="text-align: right; margin-right: 40px;">
                        <asp:Button runat="server" ID="btnAssocicate" CssClass="button" Text="Associate new service"
                            Width="150px" />
                    </p>
                    <cc1:ModalPopupExtender ID="ModalPopupExtender21" runat="server" CancelControlID="lbClose"
                        TargetControlID="btnAssocicate" PopupControlID="pnAssService" X="410" Drag="true">
                    </cc1:ModalPopupExtender>
                    <asp:Panel runat="server" ID="pnAssService">
                    <div style="border: 1px solid gray;background-color: lavender;">
                        <span style="text-align: right;"><a href="#" id="lbClose" style="text-decoration: none;">X</a></span>
                        <asp:GridView ID="GridView1" AutoGenerateColumns="False" DataKeyNames="ID" runat="server"
                            Width="725px" Font-Size="15px" AllowPaging="True" PageSize="15" BackColor="White" BorderColor="#CCCCCC" AllowSorting="true"
                            BorderStyle="None" BorderWidth="1px" CellPadding="3">
                            <Columns>
                                <asp:TemplateField HeaderText="Service Name">
                                    <ItemTemplate>
                                        <asp:Label ID="lbHOA" runat="server" Text='<%#Eval("Name") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Description">
                                    <ItemTemplate>
                                        <asp:Label ID="lbHOA" runat="server" Text='<%#Eval("Des") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Service Type">
                                    <ItemTemplate>
                                        <asp:Label ID="lbPostcode" runat="server" Text='<%#Eval("Type") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Contact">
                                    <ItemTemplate>
                                        <asp:Label ID="lbContact" runat="server" Text='<%#Eval("Contact") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                                <asp:TemplateField HeaderText="Is Active">
                                    <ItemTemplate>
                                        <asp:Label ID="lbActive" runat="server" Text='<%#Eval("IsActive") %>'></asp:Label>
                                    </ItemTemplate>
                                </asp:TemplateField>
                            </Columns>
                            <FooterStyle BackColor="White" ForeColor="#000066" />
                            <HeaderStyle BackColor="#006699" Font-Bold="True" ForeColor="White" />
                            <PagerStyle BackColor="White" ForeColor="#000066" HorizontalAlign="Left" />
                            <RowStyle ForeColor="#000066" />
                            <SelectedRowStyle BackColor="#669999" Font-Bold="True" ForeColor="White" />
                        </asp:GridView>
                        </div>
                    </asp:Panel>
                </div>
            </div>
        </div>
        <asp:UpdatePanel ID="Tab1" runat="server">
            <ContentTemplate>
                <p style="width: 100%; background-color: lavender; line-height: 25px;">
                    <asp:Label ID="Label1" runat="server"></asp:Label>
                </p>
                <asp:Button ID="Button1" runat="server" Text="Save" CssClass="button" OnClientClick="getValueHidden()"
                    OnClick="Button1_Click" />
                <asp:Button ID="btnBack" runat="server" Text="Back" CssClass="button" OnClick="btnBack_Click" />
            </ContentTemplate>
            <Triggers>
                <asp:AsyncPostBackTrigger ControlID="Button1" EventName="Click" />
                <asp:AsyncPostBackTrigger ControlID="dlCateType" EventName="SelectedIndexChanged" />
            </Triggers>
        </asp:UpdatePanel>
        <asp:UpdateProgress ID="pro" runat="server" AssociatedUpdatePanelID="Tab1">
        </asp:UpdateProgress>
    </fieldset>
</asp:Panel>
